﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LatestCategory.aspx.cs" Inherits="ViewbyProduct_LatestCategory" Title="查看最近测试数据" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <div>
    <br />    
    <asp:Label ID="Label1" runat="server" Text="以下是最近一天的测试数据："></asp:Label><br />
    <br />
    <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="White"
        BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
            GridLines="None" AllowPaging="True" 
        AutoGenerateColumns="False" DataKeyNames="ProductSN,TestTime,ProductTypeID,UserID,ENAID,SpecVersion,IsPass" 
        OnPageIndexChanging="GridView1_PageIndexChanging" 
            OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="20" 
            Width="100%" EmptyDataText="没有相关数据！" 
            onrowdatabound="GridView1_RowDataBound" ShowFooter="True">
        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
        <Columns>
            <asp:TemplateField HeaderText="查看详细" ShowHeader="False">
                <FooterTemplate>
                    共<asp:Label ID="Label2" runat="server"></asp:Label>记录
                </FooterTemplate>
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                        CommandName="Select" Text="详细"></asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="ProductSN" 
                    DataNavigateUrlFormatString="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx?ProductSN={0}" 
                    DataTextField="ProductSN" HeaderText="腔体序列号" 
                    NavigateUrl="~/ViewbyProduct/ViewProductState/ProductSNLifeTime.aspx" 
                    Text="ProductSN" />
            <asp:BoundField DataField="TestTime" HeaderText="测试时间" />
            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型编号" />
            <asp:BoundField DataField="UserID" HeaderText="测试员工号" />
            <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
            <asp:BoundField DataField="SpecVersion" HeaderText="指标单版本" />
            <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
        </Columns>
    </asp:GridView>
    <br />  
    <br />  
    <br />  
    </div> 
    </ContentTemplate>
    </asp:UpdatePanel> 
</asp:Content>

